//
//  HJCompletBusTeamVC.m
//  project
//
//  Created by hu on 2019/4/8.
//  Copyright © 2019 健健. All rights reserved.
//

#import "HJCompletBusTeamVC.h"
#import "HJCompletBusView.h"
#import "HJTeamHeader.h"

@interface HJCompletBusTeamVC ()
@property (nonatomic,strong) HJTeamHeader * teamHeader;
@property (nonatomic,strong) HJCompletBusView *completBusView;

@end

@implementation HJCompletBusTeamVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navTitle = @"完成组队详情";
    [self configBtmViewBtn];
}
-(void)configTableView {
    self.tableViewStyle  = UITableViewStylePlain;
    [super configTableView];
    self.tableView.tableHeaderView = [self configTableHeaderView];
}
-(UIView *)configTableHeaderView {
    UIView * header = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 278+190)];
    HJTeamHeader * teamHeader = [[HJTeamHeader alloc]init];
    teamHeader.frame = CGRectMake(0, 0, header.width, 278);
    self.teamHeader = teamHeader;
    [header addSubview:teamHeader];
    
    HJCompletBusView * completView = [[HJCompletBusView alloc]init];
    completView.frame= CGRectMake(0, teamHeader.height, SCREEN_WIDTH, 190);
    self.completBusView = completView;
    [header addSubview:completView];
    
    return header;
}
-(void)configBtmViewBtn {
    CGFloat btnY = self.view.height - Height_TabBar-68;
    UIButton *releaseButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
    releaseButton.frame = CGRectMake(48, btnY, SCREEN_WIDTH - 96, 68);
    [releaseButton setBackgroundImage:[UIImage imageNamed:@"releasebtn"] forState:(UIControlStateNormal)];
    [releaseButton setTitle:@"和TA聊天" forState:(UIControlStateNormal)];
    releaseButton.adjustsImageWhenHighlighted = NO;
    releaseButton.titleLabel.font = [UIFont boldSystemFontOfSize:18];
    releaseButton.titleEdgeInsets = UIEdgeInsetsMake(0, 0, 8, 0);
    [releaseButton addTarget:self action:@selector(completButtonClicked) forControlEvents:(UIControlEventTouchUpInside)];
    [self.view addSubview:releaseButton];
   
}

-(void)completButtonClicked {
    
}
@end
